<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<title>微名片管理</title>

<script>

document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
});

</script>



 <style>
.touxiang{ height:12rem; width:8rem; margin:0 auto;} 
.touxiang img{ width:8rem; height:8rem;   margin-top:3rem;}
.touxiang img:hover{ opacity:0.7;} 
.bd input{ height:3rem; background:#FFF;  }
.bd .u_btn_b{ height:3rem;}
.h .ui-btn{ line-height:1.5rem;}
#edui1,#edui60,#edui60_iframeholder,#edui1_iframeholder{ width:100% !important; }
.simditor .simditor-body,.simditor .simditor-wrapper .simditor-placeholder{ padding:10px !important}
  </style> 
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/weixin_dg114/simditor/styles/simditor.css" />
<script type="text/javascript" src="__PUBLIC__/Home/weixin_dg114/simditor/scripts/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/weixin_dg114/simditor/scripts/module.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/weixin_dg114/simditor/scripts/hotkeys.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/weixin_dg114/simditor/scripts/uploader.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/weixin_dg114/simditor/scripts/simditor.js"></script>

  
  
<link rel="stylesheet" href="http://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.css" />
<script src="http://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.js"></script>
<script src="__PUBLIC__/Admin/js/artDialog/artDialog.js"></script>
<script src="__PUBLIC__/Admin/js/artDialog/plugins/iframeTools.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/js/artDialog/skins/default.css">


 <script>
 function reloads(){
	 alert('提交成功');
	 location.reload();
	 
	 }
 var mydialog = art.dialog;
 
 function closedialog(){
	 mydialog.close();
}
 function showImgBox(curElement,heid,type){ 
if(type==1){ title_='自由上传';}else{title_='上传图片';}
	mydialog.open('{:U('showimgBox')}', {
		
		width:$(window).width(), height: 300,lock:true,title:title_,yesClose:false, ok:function(){
			var d = this.iframe.contentWindow.document;
			
			
		$.post(
		'{:U('Jcrop')}',
		{	type:$(d).find('#type').val(),
			x:$(d).find('#x').val(),
		    y:$(d).find('#y').val(),
			w:$(d).find('#w').val(),
			h:$(d).find('#h').val(),
			src:$(d).find('#img_src').val() 
			},
			function(data){
			if(data == 'OK'){
				$('#'+heid).val($(d).find('#img_src').val());
				curElement.src = $(d).find('#img_src').val();
				closedialog();
			}
		}
		
		); 
		
		
		
		
	
			
		
	}});
}
 </script>
<style>
body{ background:#eeeeee; }
 .i{ width:20px; background:url(__PUBLIC__/Member/weixin_dg114/jiantou.png) no-repeat center;color:#000; 
background-size:40%;} 
.table{ background:#FFF; width:100%;}
table tr td{ padding-left:0.8rem; border-bottom:1px solid #e5e5e5; }
table tr:hover{ background:#f7f7f7;}
.table tr td img{ width:70px; height:70px; border-radius:6px;}
.table tr .td1{ width:70px; height:80px; }
 .table2{ width:100%; background:#FFF;}
.table2 tr td{ height:3rem;}
table tr td a{ width:100%; display:inline-block; text-decoration:none; color:#333 !important; height:3rem; line-height:3rem;
font-weight:normal !important;} 
  </style>
</head>

<body >
<style>
.tf{ width:100%; background:#FFF; height:3rem; margin-bottom:20px;}
#tb{ width:40px; background-size:60% !important;  text-align:center;}
.count{ width:100%; height:3rem; background:#FFF; line-height:3rem;}
.count tr td{ width:50%;}
.count tr td span{ float:right; margin-right:0.8rem; color:#626262;}
 
</style> 
     <!-- 企业基础资料 -->
 
 <div data-role="page" id="pageone" >
<div data-role="header" style="background:#2f2f2f; color:#FFF;border-width:0">

<a href="{:U('Member/Vcard/edit')}" data-role="button" data-icon="home" data-theme="b" data-ajax="false"  data-transition="flip">返回</a>
<h1 style="text-shadow:none">基础资料</h1>
</div>
<div data-role="content" style="padding:0;">
 

<table class="table2" cellpadding="0" cellspacing="0" >
 
<tr onClick="location='#pagetwo24'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/logo.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo24" data-transition="flow">店铺logo</a></td><td class="i"></td></tr>

 
<tr onClick="location='#pagetwo20'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/mc.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo20" data-transition="flow">店铺全称</a></td><td class="i"></td></tr>

<tr><td colspan="3" style="background:#eeeff3; height:14px !important"></td></tr>
  
<tr onClick="location='#pagetwo30'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/ggy.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo30" data-transition="flow">客服电话</a></td><td class="i"></td></tr>

<tr onClick="location='#pagetwo21'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/dz.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo21" data-transition="flow">店铺地址</a></td><td class="i"></td></tr>

<tr><td colspan="3" style="background:#eeeff3; height:14px !important"></td></tr>
<tr onClick="location='#pagetwo26'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/jc.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo26" data-transition="flow">品牌名称</a></td><td class="i"></td></tr>

<tr onClick="location='#pagetwo27'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/xx.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo27" data-transition="flow">广告语</a></td><td class="i"></td></tr>

 
  

 
   
 
 
 </table>
 

</div>
<include file="Public:footer" />
 </div>
  <!-- end企业基础资料 -->
  
   
 <!-- 企业logo  -->
 <div data-role="page" id="pagetwo24" >
 
  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="#pageone" data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
  <h1 style="text-shadow:none">店铺logo</h1> 
</div>
   <div data-role="content" style=" padding:0;" >
   <div class="touxiang">
   <img onClick="showImgBox(this,'logo',1);" id="cardf_logo" src="{$info.logo}"/>
   
   <input type="hidden" value="" id="logo">
   
</div>
 <a href="#copytx" data-rel="dialog" class="jianq" style="display:none">fff</a>  
  <table class="table2" cellpadding="0" cellspacing="0" style="border-top:1px solid #f2f2f2; margin-top:2rem;">
 <tr onClick="uplogo()">
<td style="background:url(__PUBLIC__/Home/weixin_dg114/menber/images/pic.png) no-repeat 10px center; background-size:40px;"> <a  data-transition="flow" style="padding-left:45px;">从相册选一张</a></td><td class="i"></td>
</tr>

 
 
</table>
 <script>
  function uplogo(){
	 
	 
	$("#cardf_logo").click(); 
	 
	 
	 }
 
 
 document.getElementById('cardf_logo').onload=function(){
	 
	 if($("#logo").val() != ''){
		var img_s=$("#logo").val();
		var url_imgtx="{:U('update')}";
		
		$.post(
		url_imgtx,
		{logo:img_s},
		function(a){
			 
				$("#logo").val(''); 
			
			},
		'html'
 		
		);
		
		 
		 }
	 
	 
	 
	 }

</script>

 
   
    
  </div>

  <include file="Public:footer" />
 
</div> 
<!-- end企业logo -->

  

 <!-- 公司名称  -->
<div data-role="page" id="pagetwo20">
  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="javascript:history.go(-1);"data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">店铺全称</h1>
</div>

  <div data-role="content" >
   
  
    <div class="bd">
       <form id="tj" action="{:U('update')}" data-ajax="false" method="post">
     
     
              <input class="u_txt" name="company" id="BasicInfoForm_nickname" type="text" maxlength="50" value="{$info.company}" placeholder="填写公司全称">
 
          
           <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交"  >
          </div>
        
      </form>
  
     </div> 
  </div>
  
  
 
  
<include file="Public:footer" />

   
</div> 
<!-- end公司名称 -->

<!-- 公司简称  -->
<div data-role="page" id="pagetwo26">
  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="javascript:history.go(-1);"data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">品牌名称</h1>
</div>

  <div data-role="content" >
   
  
    <div class="bd">
       <form id="tj" action="{:U('update')}" data-ajax="false" method="post">
     
     
              <input class="u_txt" name="jc" id="BasicInfoForm_nickname" type="text" maxlength="50" value="{$info.jc}" placeholder="企业简称 (建议6个字以内 如：中国民网)">
 
          
           <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交"  >
          </div>
        
      </form>
  
     </div> 
  </div>
  
  
 
  
<include file="Public:footer" />

   
</div> 
<!-- end公司简称 -->


<!-- 公司简称  -->
<div data-role="page" id="pagetwo30">
  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="javascript:history.go(-1);"data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">客服电话</h1>
</div>

  <div data-role="content" >
   
  
    <div class="bd">
       <form id="tj" action="{:U('update')}" data-ajax="false" method="post">
     
     
              <input class="u_txt" name="phone" id="BasicInfoForm_nickname" type="text" maxlength="50" value="{$info.phone}" placeholder="企业电话">
 
          
           <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交"  >
          </div>
        
      </form>
  
     </div> 
  </div>
  
  
 
  
<include file="Public:footer" />

   
</div> 
<!-- end公司简称 -->




<!-- 广告语  -->
<div data-role="page" id="pagetwo27">
  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="javascript:history.go(-1);"data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">广告语</h1>
</div>

  <div data-role="content" >
   
  
    <div class="bd">
       <form id="tj" action="{:U('update')}" data-ajax="false" method="post">
     
     
              <input class="u_txt" name="ggy" id="BasicInfoForm_nickname" type="text" maxlength="50" value="{$info.ggy}" placeholder="广告语 (建议25字以内)">
 
          
           <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交"  >
          </div>
        
      </form>
  
     </div> 
  </div>
  
  
 
  
<include file="Public:footer" />

   
</div> 
<!-- end广告语 -->


 
<!-- 地址 -->

<div data-role="page" id="pagetwo21">
  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="javascript:history.go(-1);" data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">店铺地址</h1>
</div>

  <div data-role="content" >
   
  
    <div class="bd">
       <form id="tj" action="{:U('update')}" data-ajax="false" method="post">
      
        
              <input class="u_txt weixinaddress" placeholder="地址" name="address" id="BasicInfoForm_nickname" type="text" maxlength="50" value="{$info.address}">
            
           <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交"  >
          </div>
        
      </form>
  
     </div> 
  </div>
  
  
  <script>
  <if condition="$is_weixin">
  
 $(function(){
	  
	$(".zl_name").focus(function(){  
		 
		 get_addres();
		 
		}); 
	 
	 
	 
	 }); 
	 
//微信

function get_addresinfo()
		{ 
			
			WeixinJSBridge.invoke(
				'editAddress',{:stripslashes($addressSign_info)},
			function(res){ 
				
				if(res.err_msg == 'edit_address:ok'){  
					 var a=res.proviceFirstStageName+res.addressCitySecondStageName+res.addressCountiesThirdStageName+res.addressDetailInfo;	 var name=res.userName;
					 var tel=res.telNumber;
					 $(".weixinaddress").val(a);
 					 
					 
					 $(".zl_tel").val(tel);
					 $(".zl_name").val(name);
					 $(".zl_address").val(a);
					 
					
				}else{
					alert(res.err_msg);
				}
					
				} 
		 );
		}	
function get_addres()
		{
			if (typeof WeixinJSBridge == "undefined"){
			    if( document.addEventListener ){
			        document.addEventListener('WeixinJSBridgeReady', get_addresinfo, false); 
			    }else if (document.attachEvent){
			        document.attachEvent('WeixinJSBridgeReady', get_addresinfo); 
			        document.attachEvent('onWeixinJSBridgeReady', get_addresinfo);
			    }
			}else{
			    get_addresinfo();
			}
		}
		
	 //------------------

</if>



  
   
  function tj(){
	  
var tel=$("#tel").val();
var phone=$("#phone").val();	  
 /*

if(!$("#tel").val().match(/^[0-9]+$/)){
	$("#tel").css({"color":"#a83e3e","border-color":"#ebcbd0","background":"#f2dedf"});
 	return false;
	}
	
 
    
	
if(!$("#email").val().match(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)){
	$("#email").css({"color":"#a83e3e","border-color":"#ebcbd0","background":"#f2dedf"});
	return false;
	} 

if(!$("#phone").val().match(/^[\d]+[\d-]+[\d]$/)){
	$("#phone").css({"color":"#a83e3e","border-color":"#ebcbd0","background":"#f2dedf"});
	return false;
	} 
	
*/	 
	 
$("#tj").submit(); 
     
	 }

  
  $(function(){
	 $("#tel").focus(function(){
		 $("#tel").removeAttr("style");
		  });
		  
	  $("#email").focus(function(){
		 $("#email").removeAttr("style");
		  });
		  
	  $("#phone").focus(function(){
		 $("#phone").removeAttr("style");
		  });
	 
	 $(".simditor-toolbar").css('width','100%');
	 });
 
 
 
  </script>
  
<include file="Public:footer" />

   
</div>
<!--end地址-->


 

  
  
  
 
 
  
</body>
</html>
